<template>
  <input type="text" :value="text" @input="$emit('change1',$event.target.value)" />
</template>

<script>
export default {
  //2.2.0+ 新增属性
  model: {
    prop: "text", //对应 props text
    event: "change1"
  },
  props: {
    text: String,
    default() {
      return "";
    }
  }
};
</script>